home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
m
/
maxonc++2.dms
/
maxonc++2.adf
/
MCPIncl.lha
/
exec
/
devices.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-26
|
967b
|
46 lines
#ifndef EXEC_DEVICES_H
#define EXEC_DEVICES_H
/*
** $Filename: exec/devices.h $
** $Release: 2.04 $
** $Revision: 36.5 $
** $Date: 90/05/10 $
**
** Include file for use by Exec device drivers
**
** (C) Copyright 1985,1986,1987,1988,1989 Commodore-Amiga, Inc.
** All Rights Reserved
*/
#ifndef EXEC_LIBRARIES_H
#include "exec/libraries.h"
#endif /* EXEC_LIBRARIES_H */
#ifndef EXEC_PORTS_H
#include "exec/ports.h"
#endif /* EXEC_PORTS_H */
/****** Device ******************************************************/
struct Device {
struct Library dd_Library;
};
/****** Unit ********************************************************/
struct Unit {
struct MsgPort unit_MsgPort; /* queue for unprocessed messages */
/* instance of msgport is recommended */
UBYTE unit_flags;
UBYTE unit_pad;
UWORD unit_OpenCnt; /* number of active opens */
};
#define UNITF_ACTIVE (1<<0)
#define UNITF_INTASK (1<<1)
#endif /* EXEC_DEVICES_H */